package com.qt.controller.oj;

import com.qt.annotation.OpenApi;
import com.qt.result.R;
import com.qt.service.oj.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pgw
 * @version 1.0
 * @description
 * @date Create by 2023/9/23 16:53
 */
@RequestMapping
@RestController
public class CommonController {

    @Autowired
    private CommonService commonService;

    @OpenApi
    @GetMapping("/captcha")
    public R getCaptcha() {
        return commonService.getCaptcha();
    }


}
